Skip to content

find: parse ISO 8601 dates in -newerXt to match GNU - #847

Merged
sylvestre merged 1 commit into
uutils:mainfrom
AlejandroCoronadoN:find-newerxt-iso8601
Aug 20, 2026
Merged

find: parse ISO 8601 dates in -newerXt to match GNU#847
sylvestre merged 1 commit into
uutils:mainfrom
AlejandroCoronadoN:find-newerxt-iso8601

Conversation

@AlejandroCoronadoN

Copy link
Copy Markdown
Contributor

GNU find accepts ISO 8601 dates as the reference time for the -newerXt predicates (-newermt, -newerat, -newerct):

find . -newermt 2000-01-01
find . -newermt 2000-01-01 00:00:00

uutils only accepted its own Mon DD, YYYY [HH:MM:SS] form and errored on the ISO form:

find: I cannot figure out how to interpret 2000-01-01 as a date or time

This adds the two ISO shapes (a plain date, and a date with time) to parse_date_str_to_timestamps, tried before the existing regex, so the current formats are unchanged. The scope is deliberately just ISO 8601, the most common unambiguous case; other GNU date forms can follow later.

Tested: unit assertions for both ISO shapes, and the -newerXt integration test now also runs the ISO inputs. cargo fmt and cargo clippy are clean.

@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.29%. Comparing base (f5f0f64) to head (8f47f33).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #847      +/-   ##
==========================================
+ Coverage   92.27%   92.29%   +0.01%     
==========================================
  Files          35       35              
  Lines        7435     7445      +10     
  Branches      386      388       +2     
==========================================
+ Hits         6861     6871      +10     
  Misses        433      433              
  Partials      141      141              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown

Commit 8f47f33 has test result changes:

bfs testsuite:

Test results comparison:
  Current:   TOTAL: 317 / PASSED: 274 / FAILED: 37 / SKIPPED: 6
  Reference: TOTAL: 316 / PASSED: 273 / FAILED: 37 / SKIPPED: 6

Changes from main branch:
  TOTAL: +1
  PASSED: +1
  FAILED: +0

@codspeed-hq

codspeed-hq Bot commented Aug 20, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 20 untouched benchmarks


Comparing AlejandroCoronadoN:find-newerxt-iso8601 (8f47f33) with main (f5f0f64)

Open in CodSpeed

@sylvestre
sylvestre merged commit 42ddfb1 into uutils:main Aug 20, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants